package com.ssfGame.puremvc 
{
	
	import org.puremvc.as3.patterns.facade.Facade;
	import com.ssfGame.puremvc.controller.StartupCommand;
	
	/**
	 * 
	 * @author chery
	 */
	public class MyFacade extends Facade
	{
		/**
		 * 
		 */
		public function MyFacade()
		{
			super();
		}
		/**
		 * 
		 * @return 
		 */
		public static function getInstance():MyFacade{
			if (instance ==null){
				instance=new MyFacade();
			}
			return instance as MyFacade;
		}
		override protected function initializeController():void{
			super.initializeController();
			registerCommand(StaticConst.N_C_STARTUP,StartupCommand);
		}
		/**
		 * 
		 * @param app
		 */
		public function startup(app:Object):void{
			sendNotification(StaticConst.N_C_STARTUP,app);
		}
	}
}